package com.wing.cabinet.dao;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.wing.cabinet.model.entity.StorageSingleInventoryProduct;
import com.wing.cabinet.model.response.KnifeCabinetProductExportVO;
import com.wing.cabinet.model.response.SingleInventoryProductExportVO;
import com.wing.cabinet.model.response.StorageSingleInventoryProductVO;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;
import java.util.Map;

/**
 * 暂存柜产品库存(单个柜子)-Dao
 *
 * @author
 */
@Mapper
public interface StorageSingleInventoryProductDao extends BaseMapper<StorageSingleInventoryProduct> {

    /**
     * 列表-app
     *
     * @param params
     *
     * @return
     */
    List<StorageSingleInventoryProductVO> list4app(@Param("params") Map<String, Object> params);

    /**
     * 分页列表-app
     *
     * @param page
     * @param params
     *
     * @return
     */
    List<StorageSingleInventoryProductVO>  list4app(@Param("page") Page<StorageSingleInventoryProductVO> page, @Param("params") Map<String, Object> params);

    List<StorageSingleInventoryProductVO> list(@Param("page") Page<StorageSingleInventoryProductVO> page, @Param("params") Map<String, Object> params);

    /**
     * 详情-app
     *
     * @param id
     *
     * @return
     */
    StorageSingleInventoryProductVO get4appById(Long id);

    /**
     * 在库统计导出
     * @param params
     * @return
     */
    List<StorageSingleInventoryProductVO> list(@Param("params") Map<String, Object> params);

    List<StorageSingleInventoryProductVO> pageListStorageInventoryCabinet(@Param("page") Page<StorageSingleInventoryProductVO> page, @Param("params") Map<String, Object> params);

    List<StorageSingleInventoryProductVO> getStorageSingleBySkuCodeAndBelongCabinet(@Param("page") Page<StorageSingleInventoryProductVO> page, @Param("params") Map<String, Object> params);
    List<SingleInventoryProductExportVO> inventoryProductExportList(@Param("params") Map<String, Object> params);
    List<KnifeCabinetProductExportVO> knifeCabinetProductExportVoEcxportList(@Param("params") Map<String, Object> params);

    List<StorageSingleInventoryProductVO> getAllStorageSingleBySkuCodeAndBelongCabinet(@Param("page") Page<StorageSingleInventoryProductVO> page, @Param("params") Map<String, Object> params);

}
